<?php
html::printPath(array('viSeminarTag.form-title' => 'admin/viSeminarTag/all', 'application.page-title-display' => ''));
$msg->printMessages();

echo html::entityInfoIcon('vi_seminar_tag', $viSeminarTag, 'id');
?>

<ul class="commandList">
    <li class="editLi"><?php echo html::anchor('admin/viSeminarTag/edit?id=' . $viSeminarTag['id'], text::get('viSeminarTag.editThis')) ?></li>
    <?php
    if (count($viSeminarList) == 0) {
        echo '<li class="deleteLi">' . html::anchor('admin/viSeminarTag/delete?id=' . $viSeminarTag['id'], text::get('viSeminarTag.deleteThis'), array('onclick' => 'return confirmDeletion()')) . '</li>';
    }
    ?>
</ul>

<?php
$fb = new FormBuilder('viSeminarTag', $viSeminarTag);
$fb->displayOnly();
$fb->text('name');
$fb->textarea('description');
$fb->write();

if (count($viSeminarList) > 0) {
    echo '<h2>' . text::getEscaped('viSeminarTag.seminarList') . '</h2>';
    $elb = new EntityListBuilder($this, $viSeminarList);
    $elb->setUuid($this->DISPLAY_VISEMINAR_LIST_UUID);
    $elb->text('name')->labelKey('viSeminar.name')->linkWithValue('/admin/viSeminar/display?id=', 'id');
    $elb->date('begin_date')->labelKey('viSeminar.begin_date');
    $elb->date('end_date')->labelKey('viSeminar.end_date');
    $elb->write();
}